* babl/babl-fish-path.c: (test_create): make the testbuffer contain
values in the range -0.25 .. 1.75 instead of 0.0 .. 1.0, might fix
issues with wrong clamping of float->8bit conversions.
svn path=/trunk/; revision=279
+2008-02-19 Øyvind Kolås <pippin@gimp.org>
+
+ * babl/babl-fish-path.c: (test_create): make the testbuffer contain
+ values in the range -0.25 .. 1.75 instead of 0.0 .. 1.0, might fix
+ issues with wrong clamping of float->8bit conversions.
+
2008-02-15 Øyvind Kolås <pippin@gimp.org>
* configure.ac: cleaned up win32 detection vs plug-in compilation
test = babl_malloc (sizeof (double) * test_pixels * 4);
for (i = 0; i < test_pixels * 4; i++)
- test [i] = (double) random () / RAND_MAX;
+ test [i] = ((double) random () / RAND_MAX) * 2 - 0.25;
return test;
}